package com.glsc.ngateway.amdoc.wsclients;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

public class WsClient extends WebServiceGatewaySupport {

    @Autowired
    WsdlConfiguration wsdlConfiguration;

    public Object callWebService(Object request){
        return getWebServiceTemplate().marshalSendAndReceive(wsdlConfiguration.getOawebserviceUrl(),request);
    }
}
